/*
 * AbstractDefaultDaoImpl.java
 *
 * Project: TECHWATCH - TESTING TECHNOLOGIES
 *
 * Copyright 2008 by ELCA Informatique SA
 * Av. de la Harpe 22-24, 1000 Lausanne 13
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of ELCA Informatique SA. ("Confidential Information"). You
 * shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license
 * agreement you entered into with ELCA.
 */

package ch.elca.training.dao.common;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;

import ch.elca.training.dao.core.hibernate.GenericHibernateDaoImpl;

/**
 * The default implementation of all DAOs in the project.
 * 
 * @author mmn
 * @param <T>
 *
 */
public abstract class AbstractDefaultDaoImpl<T> extends GenericHibernateDaoImpl<T, Long> {
	
	/**
	 * Auto-wires a configuration session factory for the DAO.
	 * 
	 * @param sessionFactory
	 *            the Hibernate session factory
	 */
	@Autowired
	public void init(SessionFactory sessionFactory) {
	    setSessionFactory(sessionFactory);
	}
}
